<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:include="headcss :: commonHeadCSS"></head>
<body class="main_body">
    <nav class="navbar navbar-default navbar-fixed-top">
        <div class="container-fluid container-fluid1">
            <div class="navbar-header">
                <div class="navbar-brand mrps_brand"></div>
                <label class="firstTitle">黑龙江省农业科技园区管理平台</label>
            </div>
            <ul class="nav  mrps_tab" id="mytab">
                <li  id="systemConfig" class="active"><span class="setting_icon"></span><a href="#" >系统配置</a></li>
                <li id="historyReport"><span class="Alarm_icon"></span><a href="#" >历史告警</a></li>
                <li id="basisData"><span class="menuData_icon"></span><a href="#">基础数据</a></li>
                <li id="userManage"><span class="menuUser_icon"></span><a href="#">用户管理</a></li>
            </ul>

            <ul class="nav  navbar-right mrps_tab_right">
                <li class="welcomeBox"><span class="welcomeText">欢迎您&nbsp;:&nbsp;</span></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        ${sessionScope.user.getUser() }
                        <span class="caret main_arrow"></span>
                    </a>
                    <ul class="dropdown-menu" role="menu">
                        <li><a onclick="">修改密码</a></li>
                        <li><a href="javascript:void(0);" onclick="">退出</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </nav>
    <div id="main_load">
        <div class="container-fluid">
            <div class="row-fluid">
                <div class="span12">
                    <iframe id="iframe1" name="iframe1" th:src="@{user/toUserIndex.do}" marginheight="0" marginwidth="0" frameborder="0"
                            scrolling="no" width="100%" height="100%" onLoad="iFrameHeight();"></iframe>
                </div>
            </div>
        </div>
    </div>
    <div th:include="headJS :: commonJS"></div>
<script type="text/javascript" language="javascript" th:inline="javascript">
    /*<![CDATA[*/
    function iFrameHeight() {
        var ifm= document.getElementById("iframe1");
        var subWeb = document.frames ? document.frames["iframe1"].document :
            ifm.contentDocument;
        if(ifm != null && subWeb != null) {
            ifm.height = subWeb.body.scrollHeight;
        }
    }
    /*]]>*/
</script>
<script>
    $(function(){
        $('input, textarea').placeholder();

        $("#mytab li").click(function(e){
            e.preventDefault();
            $(this).tab("show");
        })
        $("#systemConfig").click(function(){
            toUserIndex();
        })
        $("#historyReport").click(function(){
            toStatus();
        })
        $("#basisData").click(function(){
            $("#main_load").load("${ctx}/basicManager/toBasisData.do?" + Math.random());
        })
        $("#userManage").click(function(){
            $("#iframe1").attr("src","user/toUserIndex.do1");
        })
    })
</script>
</body>
</html>